import React, {Component} from 'react'
import { Link } from 'react-router-dom'
import RouterView from '../router/route.view'
import style from './index.module.scss'


class Index extends Component {
    render() {
        return(
            <div className={style.layout}>
                <RouterView routes={this.props.routes}></RouterView>
                <div className={style.firstMenu}>
                    <Link className={style.menuItem} to="/ruixing/index">首页</Link>
                    <Link className={style.menuItem} to="/ruixing/menu">菜单</Link>
                    <Link className={style.menuItem} to="/ruixing/shop">购物车</Link>
                </div>
            </div>
        )
    }
}

export default Index